package com.cerosoft.api.http.models;

public class MediaInfo extends BaseModel {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	public enum MediaType {
		folder, file
	}

	@Override
	public boolean equals(Object o) {
		if (o == null || !(o instanceof MediaInfo)) {
			return false;
		}
		MediaInfo info = (MediaInfo) o;
		if (this.getPath() == null || info.getPath() == null
				|| !getPath().equals(info.getPath())) {
			return false;
		}
		return true;
	}

	public enum FileType {
		binary, document, video, audio, image, html
	}

	private MediaType mediaType = MediaType.folder;

	private FileType fileType = null;

	private String name = null;
	private String path = null;
	private String parentPath = null;

	private long size;

	private String title;

	private String artist;

	private String album;

	public long getSize() {
		return size;
	}

	public void setSize(long size) {
		this.size = size;
	}

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public String getArtist() {
		return artist;
	}

	public void setArtist(String artist) {
		this.artist = artist;
	}

	public String getAlbum() {
		return album;
	}

	public void setAlbum(String album) {
		this.album = album;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getName() {
		return name;
	}

	public void setPath(String path) {
		this.path = path;
	}

	public String getPath() {
		return path;
	}

	public void setMediaType(MediaType mediaType) {
		this.mediaType = mediaType;
	}

	public MediaType getMediaType() {
		return mediaType;
	}

	public void setFileType(FileType fileType) {
		this.fileType = fileType;
	}

	public FileType getFileType() {
		return fileType;
	}

	public void setParentPath(String parentPath) {
		this.parentPath = parentPath;
	}

	public String getParentPath() {
		return parentPath;
	}

}
